<#include "../inc/header.ftl" />
<#import "/META-INF/spring.ftl" as spring />
<#import "/META-INF/mspring.ftl" as mspring />
<link rel="stylesheet" type="text/css" href="${base}/script/lhgcalendar/skins/lhgcalendar.css">
<script type="text/javascript" src="${base}/script/lhgcalendar/lhgcalendar.min.js"></script>
<div id="error" class="message error" style="display:none;"></div>
<table class="formtable" style="width:100%">
	<tr>
		<td class="fieldlabel" style="width:60px;">编号：</td>
		<td>
			${attachment.id}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">路径：</td>
		<td>
			${attachment.path!""}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">大小：</td>
		<td>
			${attachment.size!""}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">上传用户：</td>
		<td>
			${attachment.user!""}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">关联类型：</td>
		<td>
			${attachment.ftype!""}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">关联编号：</td>
		<td>
			${attachment.fkey!""}
		</td>
	</tr>
	<#if attachment.isImage>
	<tr>
		<td class="fieldlabel" style="width:60px;">图片宽度：</td>
		<td>
			${attachment.imageWidth!""}
		</td>
	</tr>
	<tr>
		<td class="fieldlabel" style="width:60px;">图片高度：</td>
		<td>
			${attachment.imageHeight!""}
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="${base}/uploads/${attachment.path}" />
		</td>
	</tr>
	</#if>
	<tr>
		<td colspan="4" style="text-align:center;">
			<input type="button" class="btn" value=" 返回 " onclick="history.back();" />
		</td>
	</tr>
</table>

<script type="text/javascript">
	$(document).ready(function(){
		//斑马线
		var tables=document.getElementsByTagName("table");
		var b=false;
		for (var j = 0; j < tables.length; j++){
			var cells = tables[j].getElementsByTagName("tr");
			//cells[0].className="color3";
			b=false;
			for (var i = 0; i < cells.length; i++){
				if(b){
					cells[i].className="color2";
					b=false;
				}
				else{
					cells[i].className="color3";
					b=true;
				};
			};
		}
	});
</script>
<#include "../inc/footer.ftl" />